﻿@model DingTalkAgent.Web.Models.HomeData
@{
    Layout = null;
    var index = 0;
}

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">
    <title>主页</title>

    <!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;ie.html" />
    <![endif]-->
    <link rel="shortcut icon" href="favicon.ico">
    <link href="/Skin/H4.2/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="/Skin/H4.2/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="/Skin/H4.2/css/animate.css" rel="stylesheet">
    <link href="/Skin/H4.2/css/style.css?v=4.1.0" rel="stylesheet">
</head>

<body class="fixed-sidebar full-height-layout gray-bg skin-1" style="overflow:hidden">
    <div id="wrapper">
        <!--左侧导航开始-->
        <nav class="navbar-default navbar-static-side" role="navigation">
            <div class="nav-close">
                <i class="fa fa-times-circle"></i>
            </div>
            <div class="sidebar-collapse">
                <ul class="nav" id="side-menu">
                    <li class="nav-header">
                        <div class="dropdown profile-element">
                            <span><img alt="image" class="img-circle" src="/Skin/H4.2/img/a1.jpg" style="height:64px;width:64px;"/></span>
                            <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                                <span class="clear">
                                    <span class="block m-t-xs"><strong class="font-bold">@Model.account.Name</strong></span>
                                    <span class="text-muted text-xs block">超级管理员<b class="caret"></b></span>
                                </span>
                            </a>
                            <ul class="dropdown-menu animated fadeInRight m-t-xs">
                                <li>
                                    <a class="J_menuItem" href="#">修改头像</a>
                                </li>
                                <li>
                                    <a class="J_menuItem" href="#">个人资料</a>
                                </li>
                                <li>
                                    <a class="J_menuItem" href="#">联系我们</a>
                                </li>
                                <li>
                                    <a class="J_menuItem" href="#">信箱</a>
                                </li>
                                <li class="divider"></li>
                                <li>
                                    <a href="/Account/Logout">安全退出</a>
                                </li>
                            </ul>
                        </div>
                        <div class="logo-element">
                            钉钉
                        </div>
                    </li>
                    <li>
                        <a href="#">
                            <i class="fa fa-home"></i>
                            <span class="nav-label">主页</span>

                        </a>
                    </li>
              @foreach (var SNav in @Model.sysNavList.Where(m => m.Parent_ID == -1))
              {
                  string styles = "";
                  if (Model.sysNavList.Where(m => m.Parent_ID == SNav.Nav_ID).Count() > 0)
                  {
                      index++;
                      if (index == 1)
                      {
                    <li>
                    <a href="#"><i class="fa fa-columns"></i><span class="nav-label">@SNav.Name</span><span class="fa arrow"></span></a>

                                    <ul class="nav nav-second-level" id="@SNav.Nav_ID" @styles>
                                        @{
                                            var list = Model.sysNavList.Where(m => m.Parent_ID == SNav.Nav_ID);
                                            foreach (var item in list)
                                            {
                                                <li><a class="J_menuItem" href="@item.Url" target="mainFrame">@item.Name</a></li>
                                            }
                                        }

                                    </ul>
       
                    </li>
                      }
                      else
                      {
                <li>
                    <a href="#"><i class="fa fa-columns"></i><span class="nav-label">@SNav.Name</span><span class="fa arrow"></span></a>
                    <ul class="nav nav-second-level" id="@SNav.Nav_ID" @styles>
                        @{
                            var list = Model.sysNavList.Where(m => m.Parent_ID == SNav.Nav_ID);
                            foreach (var item in list)
                            {
                                <li><a class="J_menuItem" href="@item.Url" target="mainFrame">@item.Name</a></li>
                            }
                        }

                    </ul>

                    </li>
                      }
                  }
              }

                </ul>
            </div>
        </nav>
        <!--左侧导航结束-->
        <!--右侧部分开始-->
        <div id="page-wrapper" class="gray-bg dashbard-1">
            <div class="row border-bottom">
                <nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0">
                    <div class="navbar-header">
                        <a class="navbar-minimalize minimalize-styl-2 btn btn-primary " href="#"><i class="fa fa-bars"></i> </a>
                        <form role="search" class="navbar-form-custom" method="post" action="search_results.html">
                            <div class="form-group">
                                <input type="text" placeholder="请输入您需要查找的内容 …" class="form-control" name="top-search" id="top-search">
                            </div>
                        </form>
                    </div>
                    <ul class="nav navbar-top-links navbar-right">
                        <li class="dropdown">
                            <a class="dropdown-toggle count-info" data-toggle="dropdown" href="#">
                                <i class="fa fa-envelope"></i> <span class="label label-warning">16</span>
                            </a>
                            <ul class="dropdown-menu dropdown-messages">
                                <li class="m-t-xs">
                                </li>
                                <li class="divider"></li>
                                <li>
                                </li>
                                <li class="divider"></li>
                                <li>
                                    <div class="text-center link-block">
                                        <a class="J_menuItem" href="mailbox.html">
                                            <i class="fa fa-envelope"></i> <strong> 查看所有消息</strong>
                                        </a>
                                    </div>
                                </li>
                            </ul>
                        </li>
                        <li class="dropdown">
                            <a class="dropdown-toggle count-info" data-toggle="dropdown" href="#">
                                <i class="fa fa-bell"></i> <span class="label label-primary">8</span>
                            </a>
                            <ul class="dropdown-menu dropdown-alerts">
                                <li>
                                    <a href="mailbox.html">
                                        <div>
                                            <i class="fa fa-envelope fa-fw"></i> 您有16条未读消息
                                            <span class="pull-right text-muted small">4分钟前</span>
                                        </div>
                                    </a>
                                </li>
                                <li class="divider"></li>
                                <li>
                                    <a href="profile.html">
                                        <div>
                                            <i class="fa fa-qq fa-fw"></i> 3条新回复
                                            <span class="pull-right text-muted small">12分钟钱</span>
                                        </div>
                                    </a>
                                </li>
                                <li class="divider"></li>
                                <li>
                                    <div class="text-center link-block">
                                        <a class="J_menuItem" href="notifications.html">
                                            <strong>查看所有 </strong>
                                            <i class="fa fa-angle-right"></i>
                                        </a>
                                    </div>
                                </li>
                            </ul>
                        </li>
                        <li class="hidden-xs">
                            <a href="/SysHome/Index" target="mainFrame" class="J_menuItem" data-index="0"><i class="fa fa-cart-arrow-down"></i> 返回首页</a>
                        </li>
                        <li class="dropdown hidden-xs">
                            <a href="/SysHome/UpdatePassWord" target="mainFrame" class="right-sidebar-toggle" aria-expanded="false">
                                <i class="fa fa-tasks"></i> 修改密码
                            </a>
                        </li>
                    </ul>
                </nav>
            </div>
            <div class="row content-tabs">
                <button class="roll-nav roll-left J_tabLeft">
                    <i class="fa fa-backward"></i>
                </button>
                <nav class="page-tabs J_menuTabs">
                    <div class="page-tabs-content">
                        <a href="/SysHome/Index" class="active J_menuTab">首页</a>
                    </div>
                </nav>
                <button class="roll-nav roll-right J_tabRight">
                    <i class="fa fa-forward"></i>
                </button>
                <div class="btn-group roll-nav roll-right">
                    <button class="dropdown J_tabClose" data-toggle="dropdown">
                        关闭操作<span class="caret"></span>
                    </button>
                    <ul role="menu" class="dropdown-menu dropdown-menu-right">
                        <li class="J_tabShowActive">
                            <a>定位当前选项卡</a>
                        </li>
                        <li class="divider"></li>
                        <li class="J_tabCloseAll">
                            <a>关闭全部选项卡</a>
                        </li>
                        <li class="J_tabCloseOther">
                            <a>关闭其他选项卡</a>
                        </li>
                    </ul>
                </div>
                <a href="/Account/Logout" class="roll-nav roll-right J_tabExit"><i class="fa fa fa-sign-out"></i> 退出</a>
            </div>
            <div class="row J_mainContent" id="content-main">
                <iframe class="J_iframe" id="mainFrame" name="mainFrame" width="100%" height="100%" src="/Home/Index" frameborder="0" data-id="/Home/Index"seamless></iframe>
            </div>
            <div class="footer">
                <div class="pull-right">
                    &copy; 2018-2018 <a href="#" target="_blank"></a>
                </div>
            </div>
        </div>
        <!--右侧部分结束-->



    </div>


        <!-- 全局js -->
        <script src="/Skin/H4.2/js/jquery.min.js?v=2.1.4"></script>
        <script src="/Skin/H4.2/js/bootstrap.min.js?v=3.3.6"></script>
        <script src="/Skin/H4.2/js/plugins/metisMenu/jquery.metisMenu.js"></script>
        <script src="/Skin/H4.2/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
        <script src="/Skin/H4.2/js/plugins/layer/layer.min.js"></script>
        <!-- 自定义js -->
        <script src="/Skin/H4.2/js/hplus.js?v=4.1.0"></script>
        <script type="text/javascript" src="/Skin/H4.2/js/contabs.js"></script>
        <!-- 第三方插件 -->
        <script src="/Skin/H4.2/js/plugins/pace/pace.min.js"></script>

</body>

</html>

